package cbh.tool.scheduler.core;

import cbh.tool.scheduler.clietn.HttpType;

/**
 * Created by hx-pc on 16-4-6.
 */
public class Task {

    private String host;
    private String uri;
    private Object[] params;
    private String cronExpression;
    private HttpType httpType;

    public Task(String host, String uri, Object[] params, String cronExpression, HttpType httpType) {
        this.host = host;
        this.uri = uri;
        this.params = params;
        this.cronExpression = cronExpression;
        this.httpType = httpType;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public Object[] getParams() {
        return params;
    }

    public void setParams(Object[] params) {
        this.params = params;
    }

    public HttpType getHttpType() {
        return httpType;
    }

    public void setHttpType(HttpType httpType) {
        this.httpType = httpType;
    }
}
